// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import Pinia from './stores/index.js'

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App
})

	.$mount()
// #endif
// 配置网络请求

// 配置loading加载
uni.$showMeg = function (title = '数据请求失败', icon = 'none', duration = 1000) {
	uni.showToast({
		title,
		duration,
		icon
	})
}

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
import Pinia from './stores/index.js'

export function createApp() {
	const app = createSSRApp(App)
	app.use(Pinia)

	return {
		app
	}
}
// #endif